--- import BaseHead from '../../components/BaseHead.astro'; import BlogHeader from '../../components/BlogHeader.astro'; import BlogPost from '../../components/BlogPost.astro'; import GoogleAnalytics from '../../components/GoogleAnalytics.astro'; export function getStaticPaths() { const posts = Astro.fetchContent('../../data/blog-posts/*.md'); return posts.map(p => ({ params: { slug: p.file.pathname.split('/').pop().split('.').shift() }, props: { post: p }, })); } const { Content, title, author, description, publishDate, heroImage, heroImageAlt, socialImage, permalink, lang } = Astro.props.post; ---